package com.ruiysoft.controller.sys.res;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * BrowsedShopResponse
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-28T15:44:49.584+08:00")

public class BrowsedShopResponse {

  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("shopName")
  private String shopName = null;

  @JsonProperty("identityType")
  private Integer identityType = null;

  @JsonProperty("imgUrl")
  private String imgUrl = null;

  public BrowsedShopResponse id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public BrowsedShopResponse shopName(String shopName) {
    this.shopName = shopName;
    return this;
  }

  public Integer getIdentityType() {
    return identityType;
  }

  public BrowsedShopResponse setIdentityType(Integer identityType) {
    this.identityType = identityType;
    return this;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public BrowsedShopResponse setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
    return this;
  }

  /**
   * Get shopName
   * @return shopName
  **/
  @ApiModelProperty(value = "")


  public String getShopName() {
    return shopName;
  }

  public void setShopName(String shopName) {
    this.shopName = shopName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BrowsedShopResponse browsedShopResponse = (BrowsedShopResponse) o;
    return Objects.equals(this.id, browsedShopResponse.id) &&
        Objects.equals(this.shopName, browsedShopResponse.shopName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, shopName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BrowsedShopResponse {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    identityType: ").append(toIndentedString(identityType)).append("\n");
    sb.append("    shopName: ").append(toIndentedString(shopName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

